﻿namespace AGooday.AgChat.Api.Models
{
    public class User
    {
        public int Id { get; set; }
        public string Username { get; set; }
        public string Email { get; set; }
        public string PasswordHash { get; set; }
        public string Avatar { get; set; }
        public string Status { get; set; } = "offline"; // online, offline, busy
        public DateTime LastSeen { get; set; } = DateTime.UtcNow;
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

        public virtual ICollection<Friendship> Friends { get; set; }
        public virtual ICollection<GroupMember> Groups { get; set; }
        public virtual ICollection<Message> Messages { get; set; }
    }
}
